package com.zhou.service;

import com.zhou.dao.CourseDAO;
import com.zhou.entity.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("courseService")
public class CourseServiceImpl implements CourseService {

    @Autowired
    private CourseDAO courseDAO;

    @Override
    public List<Course> findAll() {
        return courseDAO.findAll();
    }
}
